<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-27 17:43:02
 * @LastEditors: CNN 969682281@qq.com
 * @LastEditTime: 2024-01-19 10:33:35
 * @FilePath: \mould\src\components\BehaViorManage\feedbackListText\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->

<template>
  <!-- 小弹框 width:500,height:0.3,top:15%  -->
  <!-- 中弹框 width:800,height:0.5,top:10% -->
  <!-- 大弹框 width:1060,height:0.76,top:5% -->

  <div class="Control-1 mechanism_dialogS closure" id="comcn small">
    <el-dialog
      width="1060px"
      :title="title"
      v-loading="loading"
      element-loading-text="拼命加载中"
      element-loading-background="rgba(0, 0, 0, 0.2)"
      element-loading-spinner="el-icon-loading"
      v-dialogDrag
      :visible.sync="visible"
      @close="closeDialog"
      :append-to-body="true"
      top="5%"
    >
      <div
        class="dialogBody common commonClassDialog moduleDialog"
        :style="{ height: dialogHeight }"
        style="width: 100%"
      >
        <div class="baseTable">
          <publicForm1
            ref="publicForm"
            lableWidth="95px"
            :formObj="formObj"
            :formData="formData"
            @inputFocus="selectChange"
            @selectChange="selectChange"
          >
          </publicForm1>
      
        </div>
        <div class="postionTable">
          <el-table :data="positionData" style="width: 100%">
            <el-table-column label="序号" type="index" width="50"> </el-table-column>

            <el-table-column prop="fSendobject" label="存放位置" align="center">
              <template slot-scope="scope">
                <div class="selectobject">
                    
                  <el-select
                    placeholder="请选择"
                    v-model="scope.row.fLocationname"
                    value-key="fId"
                    :disabled="isEdit"
                    @change="function (item) {
                    return selectPostion(scope.row, scope.row.fLocationname,scope.$index,item);
                  }
                  "
                  >
                 
                    <el-option
                      v-for="(item, index) in positionObj"
                      :label="`${item.fLocationname}`"
                      :value="item"
                      :key="index"
                      :disabled="item.disabled"
                    >
                    </el-option>
                  </el-select>
                </div>
              </template>
            </el-table-column>
            <el-table-column
              prop="fLocationnum"
              label="存放数量(t)"
              align="center"
            >
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                  :disabled="isEdit"
                   @input="getLocationnum"
                    v-model="scope.row.fLocationnum"
                    type="number"
                  ></el-input>
                </div>
              </template>
            </el-table-column>

            <el-table-column align="right">
              <template slot="header">
                <div class="customTable">
                  <el-button
                    type="primary"
                    :disabled="isEdit"
                    icon="el-icon-circle-plus-outline"
                    @click="addUnqualifiedInfo"
                  ></el-button>
                </div>
              </template>
              <template slot-scope="scope">
                <div class="customTable" style="padding-right: 37px">
                  <el-button
                    type="danger"
                    :disabled="isEdit"
                    icon="el-icon-delete"
                    @click="deleteUnqualifiedInfo(scope.$index, scope.row)"
                    circle
                  ></el-button>
                </div>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <div class="noteTable">
          <publicForm
            ref="publicForm1"
            lableWidth="95px"
            :formObj="additionalObj"
            :formData="formData"
            
            :selected="selected"
            @delteFile="delteFile($event, 0)"
            :timestamp="formData.fFileurl"
            :fileList="fFileurllist"
            @selectChange="selectChange"
          >
          </publicForm>
        </div>
      </div>
      <div class="newlyAdded_btn" v-if="btnShow">
        <el-button :disabled="isLock" type="primary" @click="yj_saveForm(1)"
          >保存</el-button
        >
        <el-button type="warning" @click="visible = false">关闭</el-button>
      </div>
    </el-dialog>
    
    <custom-dialog
      @refreshList="refreshList"
      :currentRow="materialRow"
      v-if="materialShow"
      :dialogVisible="materialShow"
      @close1="materialDialog"
      @getMateral="getMateral"
    ></custom-dialog>
  </div>
</template>

<script src="./index.js"></script>
<style lang="less" scoped>
@import "./index.less";
</style>
